package com.yy.cli.pattern;

/**
 * @author lyy
 * @description
 * @create 2024/1/7 9:30
 */
public class TurnOffCommand implements Command{
    private Device device;

    public TurnOffCommand(Device device) {
        this.device = device;
    }

    @Override
    public void execute() {
        device.turnOff();
    }
}
